<template>
	<view class="main">
		<view class="textCenter">{{detail.title}}</view>
		<view class="textR font26 color66">{{detail.addTime}}</view>
		<view class="mgTb20">
			{{detail.content}}
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				detail:''
				
			}
		},
		
		onLoad(option) {
			this.getdetail(option.id)
			
		},
		methods:{
			getdetail(id){
				this.$http.get('/message/getMessageById', {id:id}).then(res => {
					if (res.code == '0') {
						this.detail = res.data;
					}
				})
			},
			
		},
		
	}
</script>

<style scoped>
	.main{
		padding: 20upx;
	}
</style>
